//
//  MYSystemAlertView.h
//  MiaoYin
//
//  Created by juweitu on 2020/5/4.
//  Copyright © 2020 thy. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class MYSystemAlertView;

typedef void (^ MYSystemAlertViewCompletion)(MYSystemAlertView *vc);// 右边按钮响应
typedef void (^ MYSystemAlertViewLeftClick)(MYSystemAlertView *vc);// 左边按钮响应

@interface MYSystemAlertView : UIView

- (void)showWithCompletion:(MYSystemAlertViewCompletion)completion;
- (void)showOnlyOneButtonWithCompletion:(MYSystemAlertViewCompletion)completion;
/// 对左右2个按钮不同响应
/// @param completion 右边按钮响应传递事件
/// @param leftClick 左边按钮响应传递事件
- (void)showWithCompletion:(MYSystemAlertViewCompletion)completion leftClick:(MYSystemAlertViewLeftClick)leftClick;
- (void)dismiss;//消失弹框
@property (nonatomic, strong) UIColor *my_rightButtonTextColor;
@property (nonatomic, copy) NSString *my_rightButtonTitle;
@property (nonatomic, strong) UIColor *my_leftButtonTextColor;
@property (nonatomic, copy) NSString *my_leftButtonTitle;
@property (nonatomic, copy) NSString *my_title;
@property (nonatomic, copy) NSString *my_content;
@property (nonatomic, strong) UIColor *my_bgColor;
@property (nonatomic, strong) UIColor *my_contentColor;// content 字体颜色
@property (nonatomic, strong) UIFont *my_leftButtonFont;// leftbutton 字体大小
@property (nonatomic, strong) UIFont *my_rightButtonFont;// rightbutton 字体大小
@property (nonatomic, strong) UIFont *my_contentFont;// content 字体大小

@property(nonatomic, assign) NSTextAlignment contentTextAlignment;
@end

NS_ASSUME_NONNULL_END
